package com.gcit.seniorWish.web.common.constant.enums;

/**
 * 通知类型类型
 *
 * @author tonglu
 */
public enum NoticeTypeEnum {

    REPORT_NOTICE(1, "填报须知"),
    NOTICE(2, "通知公告");

    Integer val;
    String message;

    NoticeTypeEnum(Integer val, String message) {
        this.val = val;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getVal() {
        return val;
    }

    public void setVal(Integer val) {
        this.val = val;
    }

    public static String valueOf(Integer value) {
        if (value == null) {
            return null;
        } else {
            for (NoticeTypeEnum bizLogType : NoticeTypeEnum.values()) {
                if (bizLogType.getVal().equals(value)) {
                    return bizLogType.getMessage();
                }
            }
            return null;
        }
    }
}
